<?php
namespace Amis\dataviewer;

use Amis\Basics\AmisBasics;

class PropertyItems extends AmisBasics
{
    /**
     * 属性名
     * @param string $label
     * @return $this
     */
    public function label(string $label)
    {
        $this->label = $label;
        return $this;
    }

    /**
     * 属性值
     * @param string $content
     * @return $this
     */
    public function content(string $content)
    {
        $this->content = $content;
        return $this;
    }

    /**
     * 属性值跨几列
     * @param string $span
     * @return $this
     */
    public function span(string $span)
    {
        $this->span = $span;
        return $this;
    }

    /**
     * 显示表达式
     * @param string $visibleOn
     * @return $this
     */
    public function visibleOn(string $visibleOn)
    {
        $this->visibleOn = $visibleOn;
        return $this;
    }

    /**
     * 隐藏表达式
     * @param string $hiddenOn
     * @return $this
     */
    public function hiddenOn(string $hiddenOn)
    {
        $this->hiddenOn = $hiddenOn;
        return $this;
    }
}